package cn.sendto.rowmapper.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import cn.sendto.model.dataTypeModel;
import cn.sendto.rowmapper.IRowMapper;

public class dataTypeMapper implements IRowMapper<dataTypeModel>{

	@Override
	public dataTypeModel rowMapper(ResultSet rs) throws SQLException {
		dataTypeModel model = new dataTypeModel();
		model.setDataTypeId(rs.getInt("datatypeid"));
		model.setDataTypeName(rs.getString("datatypename"));
		model.setDemo(rs.getString("demo"));
		model.setKint1(rs.getInt("kint1"));
		model.setKstr1(rs.getString("kstr1"));
		return model;
	}

}
